package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;

import java.util.List;
import java.util.Set;

public interface PermissionDao {
    public Set<Permission> findByRoleId(Integer roleId);
    Page selectByCondition(String queryString);
    void add(Permission permission);
    void delete(Integer id);
    Permission findById(Integer id);
    void edit(Permission permission);

    List<Permission> findAll();
}
